﻿using System;
using System.Collections.Generic;
using System.Drawing;
using System.Linq;
using System.Text;

namespace MemoGame
{
    class Card
    {
        private int id;
        private String filename;

        public String Filename
        {
            get { return filename; }
            set { filename = value; }
        }

        private Bitmap image;

        public Bitmap Image
        {
            get { return image; }
            set { image = value; }
        }

        private Boolean revealed;
        private Boolean matched;

        public Boolean Matched
        {
            get { return matched; }
            set { matched = value; }
        }

        public Boolean Revealed
        {
            get { return revealed; }
            set { revealed = value; }
        }

        public int Id
        {
            get { return id; }
            set { id = value; }
        }

        public Card(int id)
        {
            this.id = id;
            this.filename = "../../Resources/images/image" + id + ".png";
            //this.filename = "D://Projekty/2_VE/MemoGameForKinect/MemoGame/MemoGame/Resources/images/image" + id + ".png";
            this.revealed = false;
            this.matched = false;
        }

        public Boolean Equals(Card c)
        {
            if (this.id == c.Id)
            {
                return true;
            }
            return false;
        }

    }
}
